<?php

header('Content-Type:text/html;charset=utf-8');
require('../public/header.php');
$res=select2($con,'fenlei','where `id`='.$_GET['id'])[0];

?>

<!--/sidebar-->
        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/admin/guanli.php">首页</a><span class="crumb-step">&gt;</span>
            <a class="crumb-name" href="/admin/fenlei/index.php">分类管理</a>
            <span class="crumb-step">&gt;</span>
            <span>编辑分类</span>
            </div>
        </div>
        <form action="update2.php" method="post">
        <input type="hidden" value="<?php echo $_GET['id']?>" name="sid">
        <table border=1 width=400>
                <tr>
                    <td>类别</td>
                    <td><input type="text" name='leibie' value="<?php echo $res['leibie'] ?>"></td>
                </tr>
                <tr>
                    <td>描述</td>
                    <td><input type="text" name='miaoshu' value="<?php echo $res['miaoshu'] ?>"></td>
                </tr>
                <tr>
                    <td>状态</td>
                    <td>
                    <input type="radio" name='zhuangtai' value='1' <?php echo $res['zhuangtai'] == '1' ?'checked':'' ?> >1
                    <input type="radio" name='zhuangtai' value='0' <?php echo $res['zhuangtai'] == '0' ?'checked':'' ?> >0
                    </td>
                </tr>
        </table>
        <input type="submit" value="提交">
        </form>
<!--/main-->

<?php
require('../public/footer.php');